<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <meta http-equiv="X-UA-Compatible" content="ie=edge" />
  <script src="./jquery.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/pixi.js/4.5.1/pixi.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/1.15.1/TweenMax.min.js"></script>
  <script src="./utils.js"></script>
  <script src="./scroll.js"></script>
  <title>体温单</title>
  <style>
    body {
      margin: 0;
      padding: 0;
      overflow: scroll;
    }
    #container {
      position: absolute;
      width: 100%;
      height: 100%;
      overflow: scroll;
    }
  </style>
</head>

<body onload="evtListener()">
  <div id="container"></div>
  <script src="./graphStyle.js"> </script>
  <script src="./pixi.extend.js"> </script>
  <script src="./table.js?v=13"> </script>
  <script>
    var running = false;
    function start() {
      if (running) {
        return;
      }
      running = true;
      var root = window.root = new Chart();
      // root.draw(msg);
      function tick() {
        root.app.render(root.scene);
        requestAnimationFrame(tick);
      }
      tick();
    }
    start();
    window.postMsgToParent = function(msg) {
      window.parent.postMessage(
        {
          act: "threeMeasure",
          msg: msg
        },
        "*"
      );
    };
    function evtListener() {
      setTimeout(function() {
        window.root.draw(window.testData);
      }, 500);
    }
  </script>
</body>

</html>